package entities;

public class Item {
	private long ID;
	private String name;
	private String description;
	private double currentBidAmount;
	private long winnerUserID;
	private long sellerID;
	private boolean isMine;
	private boolean sold;
	private String pictureURL;
	private java.sql.Timestamp sellTime;
	private java.sql.Timestamp publishTime;

	public Item() {

	}

	public Item(String name, String description, double currentBidAmount,
			String pictureURL, long sellTime) {
		super();
		this.name = name;
		this.description = description;
		this.currentBidAmount = currentBidAmount;
		this.pictureURL = pictureURL;
		this.sellTime = new java.sql.Timestamp(sellTime);
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public double getCurrentBidAmount() {
		return currentBidAmount;
	}

	public void setCurrentBidAmount(double currentBidAmount) {
		this.currentBidAmount = currentBidAmount;
	}

	public long getWinnerUserID() {
		return winnerUserID;
	}

	public void setWinnerUserID(long winnerUserID) {
		this.winnerUserID = winnerUserID;
	}

	public boolean isSold() {
		return sold;
	}

	public void setSold(boolean sold) {
		this.sold = sold;
	}

	public String getPictureURL() {
		return pictureURL;
	}

	public void setPictureURL(String pictureURL) {
		this.pictureURL = pictureURL;
	}

	public java.sql.Timestamp getSellTime() {
		return sellTime;
	}

	public void setSellTime(java.sql.Timestamp sellTime) {
		this.sellTime = sellTime;
	}

	public java.sql.Timestamp getPublishTime() {
		return publishTime;
	}

	public void setPublishTime(java.sql.Timestamp publishTime) {
		this.publishTime = publishTime;
	}

	public long getID() {
		return ID;
	}

	public void setID(long iD) {
		ID = iD;
	}
	
	public long getSellerID() {
		return sellerID;
	}

	public void setSellerID(long sellerID) {
		this.sellerID = sellerID;
	}

	public boolean isMine() {
		return isMine;
	}

	public void setMine(boolean isMine) {
		this.isMine = isMine;
	}

}
